package com.afu.demo;

/**
 * ClassName: Singleton
 * Package: com.afu
 * Description: 饿汉式单例实现
 *
 * @Author zxf
 * @Create 2024/2/3 14:30
 * @Version 1.0
 */
public class Singleton {
    private static Singleton insatance = new Singleton();

    private Singleton(){
    }

    public static Singleton getInstance(){
       return insatance;
    }
}
